<?php 
  
  phpinfo();
  
  mysql_connect("localhost", "root", "password" ) or die (mysql_error());
  mysql_select_db("overall_pos_db") or die( mysql_error());

  $q = "
    select 
      description 
    from product 
    limit 0, 10;";

  echo $q;
  $r = mysql_query($q) or die( mysql_error());
  $n = mysql_numrows($r);

  echo $n;
  $i = 0;
  while( $i < $n ) {
    $description = mysql_result($r, $i, "description" );
    echo "<br>$description</br>";
    $i++;
  }

  mysql_close();
?>
